package com.yxlcommon.common.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxlcommon.common.pojo.User;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yxl
 * @since 2021-11-09
 */
public interface UserMapper extends BaseMapper<User> {

    User findByUsernameAndPassword(String username,String password);

    User selectUserInformation(String username);

    User selectUserById(Integer userId);

    User selectUserImg(String username);

    IPage<User> selectUserListByPage(String username, Page<User> page);

    void incretmentDemandNum(String username);

    void decretmentDemandNum(String username);
}

